package cn.edu.zjut.dao;

import cn.edu.zjut.po.Customer;

/**
 * @author XiaoFeng
 * @version 1.0
 * @Description Create by 2021/12/6 10:15
 */

public class CustomerDAO extends BaseHibernateDAO implements ICustomerDAO{
    public void save(Customer transientInstance) {
        System.out.println("execute --save()-- method.");
        try{
            getSession().save(transientInstance);
        }catch (RuntimeException re){
            throw re;
        }
    }

    public void delete(Customer transientInstance) {
        System.out.println("execute --delete()-- method.");
    }

    public void update(Customer transientInstance) {
        System.out.println("execute --update()-- method.");
    }

    public void findByHQL(String hql) {
        System.out.println("execute --findByHQL()-- method.");
    }
}
